package com.woniuxy.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 马宇航
 * @Description: 产品
 * @DateTime: 22/10/31/0031 10:37
 * @Component: 成都蜗牛学苑
 **/
@RestController
@RequestMapping("/producer")
@RefreshScope
public class ProducerController {
    @Value("${server.port}")
    int port;
    @Value("${classMate.forme}")
    String name;
    @RequestMapping("/forme")
    public String testMyForMe(){
        return "当前服务的信息是："+name;
    }
}
